/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package 垃.圾;

import java.io.File;

/**
 *
 * @author EnzoZhong
 */
public abstract class AoeAbs {

     private File home;

     /**
      *
      * @param home
      */
     public AoeAbs(File home) {
          this.home = home;
     }

     /**
      * 
      * @param home
      */
     public AoeAbs(String home) {
          this.home = new File(home);
     }

     /**
      * 
      * @param path
      * @param move
      * @return
      */
     public abstract Long add(String path, Boolean move);

     /**
      * 
      * @param file
      * @param move
      * @return
      */
     public abstract Long add(File file, Boolean move);

     /**
      * 
      * @param files
      * @param move
      * @return
      */
     public abstract Long[] add(File[] files, Boolean move);

     /**
      * 
      * @param file
      * @return
      */
     public abstract Long get(File file);

     /**
      * 
      * @param id
      * @return
      */
     public abstract File get(Long id);

     /**
      * 
      * @param file
      * @return
      */
     public abstract Boolean has(File file);

     /**
      * 
      * @param id
      * @return
      */
     public abstract Boolean has(Long id);

     /**
      * 
      * @param file
      */
     public abstract void del(File file);

     /**
      * 
      * @param id
      */
     public abstract void del(Long id);

     /**
      * 
      * @return
      */
     public static String getPath() {
          return System.getProperties().getProperty("user.dir");
     }

     /**
      * 
      * @return
      */
     public File getHome() {
          return home;
     }
}
